package oop_05.homework_03;
//加
public class Sum extends Computer{
    public Sum(double num1, double num2, double result) {
        super(num1, num2,result);
    }

    public void sum(){
        double num1 = getNum1();
        double num2 =getNum2();
       // this.setResult(num1+num2);
        this.setResult(getNum1()+getNum2());
        System.out.println( "sum---->"+getResult());
    }

}
